<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<%-- 
    Document   : actualizarBanner
    Created on : 14/02/2012, 11:39:48 AM
    Author     : czela
--%>
<%@ page language="java" contentType="text/html;UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <script type="text/javascript" src="/Fonafe-Bienes/js/jquery.min.js"></script>
        <script type="text/javascript" src="/Fonafe-Bienes/js/jsindex.js"></script>
        <link href="/Fonafe-Bienes/css/default.css" type="text/css" rel="stylesheet" />
        <!-- PARA CALENDARIO -->
        <link type="text/css" rel="stylesheet" href="/Fonafe-Bienes/Cal/dhtmlgoodies_calendar/dhtmlgoodies_calendar.css?random=20051112" media="screen" />
        <script type="text/javascript" src="/Fonafe-Bienes/Cal/dhtmlgoodies_calendar/dhtmlgoodies_calendar.js?random=20060118"></script>
        <!-- FIN PARA CALENDARIO -->

        <!-- PARA EL PANEL DE TEXTO EN EL TEXT AREA -->
        <script type="text/javascript" src="/Fonafe-Bienes/js/ckeditor.js"></script>
        <!-- FIN DEL PANEL DE TEXTO EN TEXT AREA -->
        <!-- PARA PRETTY PHOTO -->
        <link rel="stylesheet" href="/Fonafe-Bienes/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
        <script src="/Fonafe-Bienes/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
        <!-- FIN PRETTY PHOTO -->
    </head>

    <body>
        <script type="text/javascript">
         $(document).ready(function(){
                $("a[rel^='prettyPhoto']").prettyPhoto();
            });
        </script> 
        <!-- ********************************************************** -->
            <!-- INIDIO DE CABECERA SUPERIOR: LOGO, BUSQUEDA INICIAL Y MENU PRINCIPAL -->
            <div id="header">
                <jsp:include page="/base/header_Login.jsp" flush="false"/>
                <jsp:include page="/base/menu_GLC.jsp" >
					<jsp:param name="parametro" value="banner" />
		     </jsp:include>  
            </div>
        
        <div id="main">

            
            <!-- FIN DE CABECERA SUPERIOR: LOGO, BUSQUEDA INICIAL Y MENU PRINCIPAL -->
            <!-- ********************************************************** -->
            <script type="text/javascript">
                function guardar(){
                    if($('#TxtAsunto').val() == ''){
                        alert("El campo asunto es obligatorio");
                        $('#TxtAsunto').focus();
                    }else if($('#contenido_texto').val() == ''){
                        alert("El campo Cuerpo es obligatorio");
                        $('#contenido_texto').focus();
                    }else if($('#TxtFechaIni').val() == ''){
                        alert("El campo Fecha Inicio es obligatorio");
                        $('#TxtFechaIni').focus();
                    }else if($('#TxtFechaFin').val() == ''){
                        alert("El campo Fecha Termino es obligatorio");
                        $('#TxtFechaFin').focus();
                    }else{
                    document.nombre_form.action = '<s:url action="actualizarBanner"></s:url>';
                    document.nombre_form.submit();
                    }
                }
            </script>


            <div id="cuerpo">
                <form name="nombre_form" action="" method="post">
                    <p align="center" style="color: red"><s:property value="mensajeFail" escape="false"/></p>
                    <table class="table_form_consulta adicion_mantenimiento">
                        <thead>
                            <tr>
                                <th colspan="2">Configuracion del Banner - Popup</th>
                            </tr>
                        </thead>

                        <tbody>
                            <tr>
                                <td><span class="etiqueta_info">Asunto</span></td>
                                <td><input id="TxtAsunto" type="text" name="banner.asunto" /></td>
                            </tr>
                            <tr>
                                <td><span class="etiqueta_info">Cuerpo</span></td>
                                <td><textarea id="contenido_texto" class="text_areas" name="banner.cuerpo"></textarea></td>


                            </tr>
                            <tr>
                                <td><span class="etiqueta_info">Fecha Inicio</span></td>
                                <td>
                                    <input type="text" class="class_calendar" maxlength="10" size="7" name="inicio" id="TxtFechaIni"/>
                                    <a href="javascript:void(0)" onclick="displayCalendar(document.nombre_form.inicio,'dd/mm/yyyy',this)"><img src="/Fonafe-Bienes/img/calendar.png" alt="" /></a>
                                </td>
                            </tr>
                            <tr>
                                <td><span class="etiqueta_info">Fecha Termino</span></td>
                                <td>
                                    <input type="text" class="class_calendar" maxlength="10" size="7" name="fin" id="TxtFechaFin"/>
                                    <a href="javascript:void(0)" onclick="displayCalendar(document.nombre_form.fin,'dd/mm/yyyy',this)"><img src="/Fonafe-Bienes/img/calendar.png" alt="" /></a>
                                </td>
                            </tr>
                            <tr>
                                <td><span class="etiqueta_info">Dise&ntilde;o</span></td>
                                <td>
                                    <p align="left"><input type="radio" name="banner.disenio" value="1" checked/>&nbsp;&nbsp;<a href="/Fonafe-Bienes/img/diseno1.JPG" rel="prettyPhoto"><img src="/Fonafe-Bienes/img/diseno1.JPG" alt="Diseno 1" width="50px" height="35px" title="ver Diseno 1"/></a></p>
                                    <p align="left"><input type="radio" name="banner.disenio" value="2"/>&nbsp;&nbsp;<a href="/Fonafe-Bienes/img/diseno2.JPG" rel="prettyPhoto"><img src="/Fonafe-Bienes/img/diseno2.JPG" alt="Diseno 2" width="50px" height="35px" title="ver Diseno 2"/></a></p>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">&nbsp;</td>
                            </tr>
                            <tr>
                                <th colspan="2">
                                    <a href="javascript:void(0)" onclick="guardar();"><input type="button" name="btnenvio" class="buttonsubmit" value="Guardar" /></a>
                                    <s:url action="buscarConsultaReclamo" id="irBandEntrada"/>
                                    <s:a href="%{irBandEntrada}"><!--input type="button" name="btcancel" class="buttonsubmit" id="btncancel" value="Salir" /--></s:a>
                                </th>
                            </tr>
                        </tbody>
                    </table>
                </form>




            </div>

                
          

        </div>
        <jsp:include page="/base/footer.jsp" flush="false" />
        <script type="text/javascript">
          /*  CKEDITOR.replace('contenido_texto',
            {
                toolbar :
                    [
                    [ 'Bold', 'Italic', 'Underline',  '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock']
                ]
            });*/
        </script>
    </body>

</html>
